#ifndef SOCKETS_H_
#define SOCKETS_H_

#define SOC_ERR 999

#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netdb.h>

unsigned int getSocket(int port);
int SocSend(unsigned int socket, char *data);
char *SocReceive(unsigned int socket, int readSize);
int SocClose(unsigned int socket);

#endif /* SOCKETS_H_ */
